<?php

namespace App\Models\Common\Channel;

use Illuminate\Database\Eloquent\Model;

class ChannelWechatOffice extends Model
{
    protected $table = 'channel_wechat_offices';

    protected $fillable
        = [
            'channel_appid',
            'appid',
            'appsecret',
            'token',
            'aes_key',
        ];

    public function getAppId(): string
    {
        return $this->appid;
    }

    public function getAppSecret(): string
    {
        return $this->appsecret;
    }

    public function getToken(): string
    {
        return $this->token ?: '';
    }

    public function getAesKey(): string
    {
        return $this->aes_key ?: '';
    }


}